package com.ljf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ljf.dto.RoleQuery;
import com.ljf.entity.Role;
import com.ljf.vo.RolePermissonVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface RoleService extends IService<Role> {

    /**
     *查询该员工id的角色
     * @param eid
     * @return
     */
    Set<Role> queryByEid(Long eid);

    List<Map<String, Object>> getAllRole();

    List<Long> getRoleIdsByEid(Long eid);

    void saveRoleEmp(Long eid, Long[] empRoleIds, String token);

    List<Role> listByQo(RoleQuery qo);

    void saveRole(Role role);

    RolePermissonVo checkPermissons(Long rid);

    void saveRolePermissons(Long rid, Long[] menuIds);
}
